<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/28 0028
 * Time: 下午 5:22
 */

namespace app\common\model;


use think\Model;

class SystemLog  extends Model
{
    protected $insert = ['create_time'];

    /**
     * 创建时间
     * @return bool|string
     */
    protected function setCreateTimeAttr()
    {
        return date('Y-m-d H:i:s');
    }

    public function AdminUser()
    {
        return $this->hasOne('AdminUser','id',"admin_user_id");
    }

}